import dva from 'dva';
/*import {createHashHistory, } from 'history';*/

import './index.css';

// 1. Initialize
const app = dva({
    /*
    history: useRouterHistory(createHashHistory)(),
    history: browserHistory,
    */
});

// 2. Plugins
// app.use({});

// 3. Model
app.model(require('./models/app'));
app.model(require('./models/home'));
app.model(require('./models/patients'));
app.model(require('./models/patient'));
app.model(require('./models/discuss'));
app.model(require('./models/doctors'));
app.model(require('./models/frame'));
app.model(require('./models/user'));
app.model(require('./models/contact'));
// 4. Router
app.router(require('./router'));

// 5. Start
app.start('#root');
